from django.conf.urls import url
from django.urls import path, re_path, include
from .views import *

urlpatterns = [
    re_path(r'^login/', login, name='login'),
    re_path(r'^bookMana/$', show_books, name="show_books"),
    re_path(r'^userMana/$', show_users, name="show_users"),
    re_path(r'^rentMana/$', show_rent, name="show_rent"),
    re_path(r'^select_book/', select_book, name="select_book"),
    re_path(r'^select_user/', select_user, name="select_user"),
    re_path(r'^select_rent/', select_rent, name="select_rent"),
    re_path(r'^deleteBook/', del_book, name="del_book"),
    re_path(r'^deleteUser/', del_user, name="del_user"),
    re_path(r'^deleteRent/', del_rent, name="del_rent"),
    re_path(r'^addBook/', add_book, name="add_book"),
    re_path(r'^addUser/', add_user, name="add_user"),
    re_path(r'^addRent/', add_rent, name="add_rent"),
    re_path(r'^editBook/', edit_book, name="edit_book"),
    re_path(r'^editUser/', edit_user, name="edit_user"),
    re_path(r'^editRent/', edit_rent, name="edit_rent"),
]
